#include "widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    camera = new QCamera(this);
    viewfinder = new QCameraViewfinder(this);
    viewfinder->setGeometry(0,0,100,100);

    camera->setViewfinder(viewfinder);

    viewfinder->show();

    camera->start();

}

Widget::~Widget()
{
}

